package cn.ruituo.common;

import java.io.Serializable;
import java.util.HashMap;

/**
 * 响应
 * @author oldliu
 * @since 1.0
 */
public class Response extends HashMap<String,Object>  implements Serializable {
    //请求是否成功
    private boolean success;
    //理由
    private String msg;
    public Response( ) {
    }
    public Response(boolean success ) {
        this.success = success;
    }
    public Response(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Response{" +
                "success=" + success +
                ", msg='" + msg + '\'' +super.toString()+
                '}';
    }
//
}
